#pragma once
#include "ActionInterval.h"

class FadeTo:public ActionInterval{
protected:
	short m_DeltaAlpha;
	short m_AlphaDesti,m_AlphaOri;
public:
	static FadeTo *create(short alpha,float duration);
	virtual bool init(T_Node *node);
	virtual void update(int dt);
	virtual void startWithTarget(T_Node *node);
	virtual ActionType getActionType(){return FadeAction;}
};